Skip to content

Conversation

pipiland2612
Copy link
Contributor

Expose backoff directory so that we could use the function

func WithAPIBackoff(backoff backoff.Config) APIOption {
without the error: "Use of the internal package is not allowed"

Signed-off-by: pipiland2612 <[email protected]>
Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, but this is not an acceptable solution, there's a reason why YOLO vendored code is internal. Have you thought about 3 options we talked about and their pros and cons?

We need to decide:

  1. Make github.com/efficientgo/core/backoff a direct dependency
  2. Copy backoff.Config
    3.Use some other backoff config parameters

This PR looks like a hidden (1) option and it has some negative consequences. Can you tell what could be those?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants